import jieba
world = '杀人'
with open(r"C:\www\天龙八部.txt", "r", encoding="UTF-8") as file:
    content = file.read()
    content = " ".join(jieba.cut(content)).split(" ")
count = 0 # 计数器
for i in content:
    if i == world:
        count += 1
print(world, '出现的次数: ', count)